﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmallERP.PinBan.PB.Froms
{
    public partial class FrmNumSel : Form
    {
        public int Num { get; set; }
        public FrmNumSel()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (spinEdit1.Value < 1)
            {
                dxErrorProvider1.SetError(spinEdit1, "输入的数字不正确，最小为1");
                spinEdit1.Value = 1;
            }
            else
            {
                Num = (int)spinEdit1.Value;
                this.DialogResult = DialogResult.OK;
            }

        }
    }
}
